Building a RESTful API with Cloud Functions and Firestore